import React from 'react'
import { BrowserRouter as Router, Route, Switch} from 'react-router-dom'
import Layout from '@/components/Layout'
import CounterContainer from '@/page/CounterContainer'
import HomeContainer from '@/page/HomeContainer'
import NoMatchContainer from '@/page/NoMatchContainer'
import FormContainer from '@/page/SimpleFormContainer'
const routes = (
  <Router>
    <Layout>
      <Switch>
        <Route exact path="/" component={HomeContainer} />
        <Route path='/counter' component={CounterContainer} />
        <Route path='/form' component={FormContainer} />
        <Route component={NoMatchContainer} />
      </Switch>
    </Layout>
  </Router>
)
export default routes
